package com.example.database.service.impl;

import com.example.database.dao.StudentDao;
import com.example.database.entity.AdmissionForm;
import com.example.database.entity.LeavingForm;
import com.example.database.service.AdminService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AdminServiceImpl implements AdminService
{
    @Resource
    private StudentDao studentDao;

    @Override
    public List<AdmissionForm> getAdmissionForm()
    {
        return studentDao.findAdmissionFormAll();
    }

    @Override
    public List<LeavingForm> getLeavingForm()
    {
        return studentDao.findLeavingFormAll();
    }
}
